PACKAGE=	kerberos

PROG=	asn1_compile
MAN=
LIBROKEN_A=	${.OBJDIR:H:H}/lib/libroken/libroken.a
LIBADD=	vers
LDADD=	${LIBROKEN_A}
DPADD=	${LIBROKEN_A}
MK_PIE:=	no

SRCS=	\
	asn1parse.y \
	gen.c \
	gen_copy.c \
	gen_decode.c \
	gen_encode.c \
	gen_free.c \
	gen_glue.c \
	gen_length.c \
	gen_seq.c \
	gen_template.c \
	hash.c \
	lex.l \
	main.c \
	roken.h \
	symbol.c

CFLAGS+=-I${KRB5DIR}/lib/roken -I${KRB5DIR}/lib/asn1 -I.

CLEANFILES= roken.h lex.c parse.c

roken.h:
	 make-roken > ${.TARGET}

.include <bsd.prog.mk>

.PATH: ${KRB5DIR}/lib/asn1
